﻿using System.Data;
using Microsoft.Practices.EnterpriseLibrary.Data;
using System.Data.OleDb;

namespace NET.Library.Data
{
    public sealed class DBOleDb : DB
    {
        #region Fields

        #endregion

        #region Properties

        #endregion

        #region Constructors

        #endregion

        #region Instance Methods

        #region DataReader

        #endregion

        #region DataSet

        #endregion

        #region ExecuteNonQuery

        #endregion

        #region ExecuteScalar#endregion

        #region DataReader

        #endregion

        #endregion

        #endregion

        #region Static Methods

        #region DataReader
        public static OleDbDataReader ExecuteOleDbReader(string commandText)
        {
            return (OleDbDataReader)DatabaseFactory.CreateDatabase().ExecuteReader(CommandType.Text, commandText);
        }

        public static OleDbDataReader ExecuteOleDbReader(OleDbCommand command)
        {
                        return (OleDbDataReader)DatabaseFactory.CreateDatabase().ExecuteReader(command);
        }
        #endregion

        #endregion
    }
}
